package cn.tedu._07springaop.aop;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.lang.annotation.Annotation;

public class TestCalculator {
    public static void main(String[] args){
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu._07springaop");
        CalculatorImpl bean=context.getBean(CalculatorImpl.class);
        bean.add(20,20);
    }
}
